package springapp.util;

import springapp.entity.CompanyEntity;

public class CompanyEntitySetterFactory {
	public static final IEntitySetter<CompanyEntity, Integer> idSetter = new IEntitySetter<CompanyEntity, Integer>() {
		public void set(CompanyEntity entity, Integer value) {
			entity.setCompanyId(value);
		}
	};

	public static final IEntitySetter<CompanyEntity, String> companyNameSetter = new IEntitySetter<CompanyEntity, String>() {
		public void set(CompanyEntity entity, String value) {
			entity.setCompanyName(value);
		}
	};

	public static final IEntitySetter<CompanyEntity, String> hqSetter = new IEntitySetter<CompanyEntity, String>() {
		public void set(CompanyEntity entity, String value) {
			entity.setHeadquarters(value);
		}
	};

	public static final IEntitySetter<CompanyEntity, Integer> industryIdSetter = new IEntitySetter<CompanyEntity, Integer>() {
		public void set(CompanyEntity entity, Integer value) {
			entity.setIndustryId(value);
		}
	};

	public static final IEntitySetter<CompanyEntity, Float> ratingSetter = new IEntitySetter<CompanyEntity, Float>() {
		public void set(CompanyEntity entity, Float value) {
			entity.setRating(value);
		}
	};
}
